package tt.dz.appserver.service.business;

import org.apache.avro.AvroRemoteException;

import tt.dz.appserver.entity.model.ResultMappingEntity;

/**
 * 车联网业务接口
 * @author xielf
 *
 */
public interface CarService {

	/**
	 * 汽车列表
	 * @return
	 */
	public ResultMappingEntity carList() throws AvroRemoteException;
	
	/**
	 * 控制车辆
	 * @param vin
	 * @param controlComCode
	 * @param controlAction
	 * @return
	 */
	public ResultMappingEntity controlCar(String vin, String controlComCode, String  controlAction) throws AvroRemoteException;
	
	/**
	 * 查询支持的控制
	 * @param vin
	 * @return
	 */
	public ResultMappingEntity controlCommand(String vin) throws AvroRemoteException;
	
	/**
	 * 查询车辆位置
	 * @param vin
	 * @return
	 */
	public ResultMappingEntity getCarLocation(String vin) throws AvroRemoteException;
	
	/**
	 * 获取行程
	 * @param vin
	 * @return
	 * @throws AvroRemoteException
	 */
	public ResultMappingEntity journey (String vin) throws AvroRemoteException;
}
